package com.kodcu.data.dao.interfaces;

import com.kodcu.data.dataobjects.DomainObject;

import java.io.Serializable;
import java.util.List;

/**
 * @author Richard Wilkinson - richard.wilkinson@jweekend.com
 */
public interface Dao<T extends DomainObject> {
    public void delete(T o);

    public T load(Serializable id);

    public T save(T o);

    public List<T> findAll();

    public int countAll();

    public boolean find(T o);
}

